package com.htthorizon;

import com.github.yitter.contract.IdGeneratorOptions;
import com.github.yitter.idgen.YitIdHelper;
import com.htthorizon.common.security.annotation.EnableCustomConfig;
import com.htthorizon.common.security.annotation.EnableRyFeignClients;
import com.htthorizon.common.swagger.annotation.EnableCustomSwagger2;
import com.htthorizon.model.controller.ModelInfoController;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 定时任务
 * 
 * @author mark
 */
@EnableCustomConfig
@EnableCustomSwagger2
@EnableRyFeignClients   
@SpringBootApplication
@EnableScheduling
public class HtManageApplication
{
    public static void main(String[] args)
    {
        ConfigurableApplicationContext run = SpringApplication.run(HtManageApplication.class, args);
        System.out.println("(♥◠‿◠)ﾉﾞ  管理模块启动成功   ლ(´ڡ`ლ)ﾞ  ");

        IdGeneratorOptions options = new IdGeneratorOptions();
        YitIdHelper.setIdGenerator(options);
    }
}
